package com.ruoyi.system.wnjk.domain.po;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 支付订单对象 shop_pay_order
 *
 * @author ruoyi
 * @date 2025-03-14
 */
public class ShopPayOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 业务订单号 */
    @Excel(name = "业务订单号")
    private Long bizOrderNo;

    /** 支付单号 */
    @Excel(name = "支付单号")
    private String payOrderNo;

    /** 支付用户id */
    @Excel(name = "支付用户id")
    private Long bizUserId;

    /** 支付渠道编码 */
    @Excel(name = "支付渠道编码")
    private String payChannelCode;

    /** 支付金额 */
    @Excel(name = "支付金额")
    private BigDecimal amount;

    /** 支付类型，1：h5,2:小程序，3：公众号，4：扫码，5：余额支付 */
    @Excel(name = "支付类型，1：h5,2:小程序，3：公众号，4：扫码，5：余额支付")
    private Integer payType;

    /** 支付状态，0：待提交，1:待支付，2：支付超时或取消，3：支付成功 */
    @Excel(name = "支付状态，0：待提交，1:待支付，2：支付超时或取消，3：支付成功")
    private Integer status;

    /** 拓展字段，用于传递不同渠道单独处理的字段 */
    @Excel(name = "拓展字段，用于传递不同渠道单独处理的字段")
    private String expandJson;

    /** 第三方返回业务码 */
    @Excel(name = "第三方返回业务码")
    private String resultCode;

    /** 第三方返回提示信息 */
    @Excel(name = "第三方返回提示信息")
    private String resultMsg;

    /** 支付成功时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "支付成功时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date paySuccessTime;

    /** 支付超时时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "支付超时时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date payOverTime;

    /** 支付二维码链接 */
    @Excel(name = "支付二维码链接")
    private String qrCodeUrl;

    /** 创建人 */
    @Excel(name = "创建人")
    private Long creater;

    /** 更新人 */
    @Excel(name = "更新人")
    private Long updater;

    /** 逻辑删除 */
    @Excel(name = "逻辑删除")
    private Integer isDelete;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setBizOrderNo(Long bizOrderNo)
    {
        this.bizOrderNo = bizOrderNo;
    }

    public Long getBizOrderNo() {
        return bizOrderNo;
    }

    public String getPayOrderNo() {
        return payOrderNo;
    }

    public void setPayOrderNo(String payOrderNo) {
        this.payOrderNo = payOrderNo;
    }

    public void setBizUserId(Long bizUserId) {
        this.bizUserId = bizUserId;
    }

    public Long getBizUserId()
    {
        return bizUserId;
    }
    public void setPayChannelCode(String payChannelCode)
    {
        this.payChannelCode = payChannelCode;
    }

    public String getPayChannelCode()
    {
        return payChannelCode;
    }
    public void setAmount(BigDecimal amount)
    {
        this.amount = amount;
    }

    public BigDecimal getAmount()
    {
        return amount;
    }
    public void setPayType(Integer payType)
    {
        this.payType = payType;
    }

    public Integer getPayType()
    {
        return payType;
    }
    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }
    public void setExpandJson(String expandJson)
    {
        this.expandJson = expandJson;
    }

    public String getExpandJson()
    {
        return expandJson;
    }
    public void setResultCode(String resultCode)
    {
        this.resultCode = resultCode;
    }

    public String getResultCode()
    {
        return resultCode;
    }
    public void setResultMsg(String resultMsg)
    {
        this.resultMsg = resultMsg;
    }

    public String getResultMsg()
    {
        return resultMsg;
    }
    public void setPaySuccessTime(Date paySuccessTime)
    {
        this.paySuccessTime = paySuccessTime;
    }

    public Date getPaySuccessTime()
    {
        return paySuccessTime;
    }
    public void setPayOverTime(Date payOverTime)
    {
        this.payOverTime = payOverTime;
    }

    public Date getPayOverTime()
    {
        return payOverTime;
    }
    public void setQrCodeUrl(String qrCodeUrl)
    {
        this.qrCodeUrl = qrCodeUrl;
    }

    public String getQrCodeUrl()
    {
        return qrCodeUrl;
    }
    public void setCreater(Long creater)
    {
        this.creater = creater;
    }

    public Long getCreater()
    {
        return creater;
    }
    public void setUpdater(Long updater)
    {
        this.updater = updater;
    }

    public Long getUpdater()
    {
        return updater;
    }
    public void setIsDelete(Integer isDelete)
    {
        this.isDelete = isDelete;
    }

    public Integer getIsDelete()
    {
        return isDelete;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("bizOrderNo", getBizOrderNo())
            .append("payOrderNo", getPayOrderNo())
            .append("bizUserId", getBizUserId())
            .append("payChannelCode", getPayChannelCode())
            .append("amount", getAmount())
            .append("payType", getPayType())
            .append("status", getStatus())
            .append("expandJson", getExpandJson())
            .append("resultCode", getResultCode())
            .append("resultMsg", getResultMsg())
            .append("paySuccessTime", getPaySuccessTime())
            .append("payOverTime", getPayOverTime())
            .append("qrCodeUrl", getQrCodeUrl())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("creater", getCreater())
            .append("updater", getUpdater())
            .append("isDelete", getIsDelete())
            .toString();
    }
}
